import { createApp } from 'vue' //导入vue

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import locale from 'element-plus/dist/locale/zh-cn.js'
import router from './router'
import {createPinia} from "pinia";
import { createPersistedState } from 'pinia-persistedstate-plugin'

const app = createApp(App);
const pinia = createPinia();

pinia.use(createPersistedState());
app.use(pinia)
app.use(router)
app.use(ElementPlus,{locale})

app.mount('#app')
